package com.rcd.vo;

import java.util.Set;

import com.rcd.util.Md5;

public class User {

	private int uid;
	private String uname;
	private String upass;
	private float umoney;
	private String uphoto;
	private String uloc;
	private String ucall;
	private String uemail;
	private String upay;
	private String usex;
	private int uscore;
	
	private Set<Review> reviews;
	private Set<Orders> orders;
	
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getUpass() {
		return upass;
	}
	public void setUpass(String upass) {
		if(upass != null){
			this.upass = Md5.getMd5(upass);
		}
	}
	public float getUmoney() {
		return umoney;
	}
	public void setUmoney(float umoney) {
		this.umoney = umoney;
	}
	public String getUphoto() {
		return uphoto;
	}
	public void setUphoto(String uphoto) {
		this.uphoto = uphoto;
	}
	public String getUloc() {
		return uloc;
	}
	public void setUloc(String uloc) {
		this.uloc = uloc;
	}
	public String getUcall() {
		return ucall;
	}
	public void setUcall(String ucall) {
		this.ucall = ucall;
	}
	public String getUemail() {
		return uemail;
	}
	public void setUemail(String uemail) {
		this.uemail = uemail;
	}
	public String getUpay() {
		return upay;
	}
	public void setUpay(String upay) {
		this.upay = upay;
	}
	public String getUsex() {
		return usex;
	}
	public void setUsex(String usex) {
		this.usex = usex;
	}
	public int getUscore() {
		return uscore;
	}
	public void setUscore(int uscore) {
		this.uscore = uscore;
	}
	public Set<Review> getReviews() {
		return reviews;
	}
	public void setReviews(Set<Review> reviews) {
		this.reviews = reviews;
	}
	public Set<Orders> getOrders() {
		return orders;
	}
	public void setOrders(Set<Orders> orders) {
		this.orders = orders;
	}
}
